<form id="pagerForm" method="post" action="<?php echo Yii::app()->request->requestUri?>">
	<input type="hidden" name="status" value="${param.status}">
	<input type="hidden" name="keywords" value="${param.keywords}" />
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${model.numPerPage}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
</form>

<div class="page">
	<div class="pageHeader">
	</div>
	
		<table class="table" layouth="90">
			<thead>
				<tr>
					<th width="100">ID</th>
					<th>标题</th>
					<th>图片</th>
					<th>时间</th>
					<th>分类</th>
					<th width="100" align="center">操作</th>
				</tr>
			</thead>
			<tbody>
			    <?php foreach ($rows as $k => $row):?>
				<tr>
					<td><?php echo $row->id?></td>
					<td><?php echo $row->title?></td>
					<td>
					<?php if($row->photo):?>
					<img src="<?php echo $row->photo?>" width="120" height="60" />
					<?php else:?>
					文字链接
					<?php endif;?>
					</td>
					<td><?php echo $row->create_time?></td>
					<td> </td>
					<td>
					  <a href="<?php echo Yii::app()->params['admin_domain']?>/article_link/edit/id/<?php echo $row->id?>" target="navTab" >修改</a>/<a href="<?php echo Yii::app()->params['admin_domain']?>/article_link/delete/id/<?php echo $row->id?>" target="navTabTodo" title="确定要删除吗?">删除</a></td>
				</tr>
				<?php endforeach;?>
			</tbody>
		</table>

		<div class="panelBar">
			<div class="pages">
				<span>共<?php echo $pages->itemCount?>条</span>
			</div>
			
			<div class="pagination" targetType="navTab" totalCount="<?php echo $pages->itemCount?>" numPerPage="<?php echo $pages->pageSize?>" pageNumShown="10" currentPage="<?php echo $pages->currentPage + 1?>"></div>

		</div>
</div>